package com.wzx.user.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wzx.user.common.BasePojo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author wzx
 * @version 1.0
 * @date 2023/6/1 - 23:04
 * @description 标题
 */
@Data
@TableName("t_system_msg")
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "SystemMsg", description = "系统消息表")
public class SystemMsg extends BasePojo {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(notes = "主键id", required = true)
    private Integer id;

    @TableField("senderId")
    @ApiModelProperty(value = "发送者id")
    private Integer senderId;

    @TableField("senderName")
    @ApiModelProperty(value = "发送者名称")
    private String senderName;

    @TableField("senderHead")
    @ApiModelProperty(value = "发送者头像")
    private String senderHead;

    @TableField("receiverId")
    @ApiModelProperty(value = "接收者id")
    private Integer receiverId;

    @TableField("receiverName")
    @ApiModelProperty(value = "接收者名称")
    private String receiverName;

    @TableField("message")
    @ApiModelProperty(value = "消息内容")
    private String message;

    @TableField("sysType")
    @ApiModelProperty(value = "消息类型（2：好友；3：群聊）")
    private String sysType;

    @TableField("state")
    @ApiModelProperty(value = "处理状态")
    private String state;

    @TableField("addId")
    @ApiModelProperty(value = "添加用户")
    private String addId;

    @TableField("groupId")
    @ApiModelProperty(value = "群聊id")
    private Integer groupId;

    @TableField("groupHead")
    @ApiModelProperty(value = "群聊头像")
    private String groupHead;

    @TableField("groupName")
    @ApiModelProperty(value = "群聊名称")
    private String groupName;


}
